package org.example.iris.service;

import org.example.iris.entity.User;

public interface UserService {
    void sendPhoneCode(String phoneNum) throws Exception;

    void sendEmailCode(String email) throws Exception;

    User findByUsername(String username);

    User findByEmail(String email);

    User findByPhone(String phone);

    User findById(Integer userId);

    void updatePhone(String phoneNum, Integer userId);

    void updateEmail(String email, Integer userId);

    void updatePassword(User user);
}
